ISCPersistenceUnit::ReportDesigner

Here is the signature for the ReportDesigner function:

HRESULT ReportDesigner([in] VARIANT RDModelPath, 
[in] VARIANT RDSolutionFilePath, 
[in] VARIANT RDOutputPath, 
[in] VARIANT RDExportFormat, 
[out, retval] VARIANT_BOOL *ppVal);

Note: This API does not generate the diagram picture.

The following table contains the valid arguments for the ReportDesigner function:

Parameter

Valid Type/Value

Description

RDModelPath

VT_BSTR

Specifies the file path string to the model file

RDSolutionFilePath

VT_BSTR

Specifies the file path string to the .erpt or .erps file

RDOutputPath

VT_BSTR

Specifies the output path

RDExportFormat

VT_BSTR
CSV
HTML
PDF

Specifies the export format

Report Designer Sample Script:

Dim oAPI
Set oAPI = CreateObject("ERwin9.SCAPI.9.0")
Dim oPropertyBag
Set oPropertyBag = CreateObject("ERwin9.SCAPI.PropertyBag.9.0")
Dim oPersistenceUnit
Set oPersistenceUnit = oAPI.PersistenceUnits.Create(oPropertyBag)
Call oPersistenceUnit.ReportDesigner("C:\test.erwin", "C:\Solutions\Report1.erpt", "C:\CSV", "CSV")
Call oPersistenceUnit.ReportDesigner("C:\test.erwin", "C:\Solutions\Reports.erps", "C:\HTML", "HTML")
Call oPersistenceUnit.ReportDesigner("C:\test.erwin", "C:\Solutions\Reports.erps", "C:\PDF", "PDF")